import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/samPoiData/getPage",
    method: "get",
    params: query,
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/samPoiData/findById",
    method: "get",
    params:id
  });
}

// 获取编号
export function getCode(id) {
  return request({
    url: "/samPoiData/getSamPoiCode",
    method: "get",
    params:id
  });
}

// 获取评估子区列表
export function getTaskListByXsemIdAndType(query) {
  return request({
    url: "/invTaskManage/getPage/" + query.xsemId,
    method: "get",
    params: query,
  });
}